-- GENERATED SPELL FOR [Lylandris] --


function spell0_14982(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(15589,pUnit)
pUnit:RegisterEvent('Sorts_14982', 556, 1)
end

function spell1_14982(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(13736,pUnit)
pUnit:RegisterEvent('Sorts_14982', 2000, 1)
end

function Sorts_14982(pUnit, Event)
local choix_sorts_14982 = math.random(0, 1)
if choix_sorts_14982 == 0 then
pUnit:RegisterEvent('spell0_14982', 1, 1)
end
if choix_sorts_14982 == 1 then
pUnit:RegisterEvent('spell1_14982', 1, 1)
end
end

function mob14982_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_14982', math.random(1500, 3000), 1)
end

function mob14982_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14982_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14982_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(14982, 1, 'mob14982_Action')
RegisterUnitEvent(14982, 2, 'mob14982_Leave')
RegisterUnitEvent(14982, 3, 'mob14982_Kill')
RegisterUnitEvent(14982, 4, 'mob14982_Die')
